package com.mrd.frame.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.mrd.frame.dao.OrderDao;
import com.mrd.frame.domain.Order;
import com.mrd.frame.service.OrderService;

@Service
public class OrderServiceImpl implements OrderService{
	@Autowired
	private OrderDao orderDao;
	
	@Override
	public int deleteByPrimaryKey(String orderId) {
		return orderDao.deleteByPrimaryKey(orderId);
	}

	@Override
	public int insert(Order record) {
		return orderDao.insert(record);
	}

	@Override
	public int insertSelective(Order record) {
		return orderDao.insertSelective(record);
	}

	@Override
	public Order selectByPrimaryKey(String orderId) {
		return orderDao.selectByPrimaryKey(orderId);
	}

	@Override
	public int updateByPrimaryKeySelective(Order record) {
		return orderDao.updateByPrimaryKeySelective(record);
	}

	@Override
	public int updateByPrimaryKey(Order record) {
		return orderDao.updateByPrimaryKey(record);
	}

	@Override
	public List<Order> selectSelective(Order record) {
		return orderDao.selectSelective(record);
	}
	
    /**
	 * 根据非null属性查询
	 * @param Order
	 * @return 所有满足条件的数据
	 */
    public List<Order> getPageList(Order record){
    	return orderDao.getPageList(record);
    }
}